package com.accloud.service;

import java.io.Serializable;

public class ACDeviceBind implements Serializable {
    private static final long serialVersionUID = 16777233;
    protected boolean isNewDevice;
    protected String physicalDeviceId;
    protected long subDomainId;
    protected Object tag;

    public ACDeviceBind(long subDomainId2, String physicalDeviceId2) {
        this.subDomainId = subDomainId2;
        this.physicalDeviceId = physicalDeviceId2;
    }

    public long getSubDomainId() {
        return this.subDomainId;
    }

    public void setSubDomainId(long subDomainId2) {
        this.subDomainId = subDomainId2;
    }

    public String getPhysicalDeviceId() {
        return this.physicalDeviceId;
    }

    public void setPhysicalDeviceId(String physicalDeviceId2) {
        this.physicalDeviceId = physicalDeviceId2;
    }

    public boolean isNewDevice() {
        return this.isNewDevice;
    }

    public void setIsNewDevice(boolean isNewDevice2) {
        this.isNewDevice = isNewDevice2;
    }

    public Object getTag() {
        return this.tag;
    }

    public void setTag(Object tag2) {
        this.tag = tag2;
    }

    @Override // java.lang.Object
    public int hashCode() {
        return this.physicalDeviceId.hashCode();
    }

    @Override // java.lang.Object
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o.getClass() != ACDeviceBind.class) {
            return false;
        }
        ACDeviceBind deviceBind = (ACDeviceBind) o;
        return deviceBind.subDomainId == this.subDomainId && deviceBind.physicalDeviceId.equals(this.physicalDeviceId);
    }

    @Override // java.lang.Object
    public String toString() {
        return "ACDeviceBind{subDomainId=" + this.subDomainId + ", physicalDeviceId='" + this.physicalDeviceId + "', isNewDevice=" + this.isNewDevice + '}';
    }
}
